<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>后台管理</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="../../../lib/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="../../../css/public.css" media="all"/>
</head>
<body class="childrenBody">
<form class="layui-form">
    <blockquote class="layui-elem-quote quoteBox">
        <div class="layui-row">
            用户Id:
            <div class="layui-input-inline">
                <input type="text" name="userId" id="userId" class="layui-input searchVal" placeholder="请输入用户id"/>
            </div>
            用户名:
            <div class="layui-input-inline">
                <input type="text" name="username" id="username" class="layui-input searchVal" placeholder="请输入搜索的内容"/>
            </div>
            状态：
            <div class="layui-inline">
                <select name="status" id="status" >
                    <option value="">全部</option>
                    <option value="1">正常</option>
                    <option value="0">冻结</option>
                </select>
            </div>
            <a class="layui-btn search_btn" data-type="reload">搜索</a>
        </div>
        <div class="layui-inline">
            <a class="layui-btn layui-btn-normal" id="addNews_btn">添加用户</a>
        </div>
    </blockquote>
    <table id="userList" lay-filter="userList"></table>

    <!--操作-->
    <script type="text/html" id="userListBar">
        <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
        {{# if(d.status==0&&d.userId!=1){}}
        <a class="layui-btn layui-btn-xs" lay-event="pass">通过</a>
        {{#}}}
        {{# if(d.status==1&&d.userId!=1){}}
        <a class="layui-btn layui-btn-xs" lay-event="notPass">不通过</a>
        {{#}}}
        <a class="layui-btn layui-btn-xs" lay-event="init">重置密码</a>
    </script>
</form>
<script type="text/javascript" src="../../../lib/layui/layui.all.js"></script>
<script type="text/javascript" src="userList.js"></script>
</body>
</html>